<?php

namespace app\index\controller;

use app\BaseController;
use support\Response;

class Index extends BaseController
{

    /**
     * 默认首页
     * @return Response
     */
    public function index(): Response
    {
        return view("home/index");
    }

    /**
     * 主页相关页面
     * @param $name
     * @return Response
     */
    public function home($name): Response
    {
        return view("home/{$name}");
    }
}
